# -*- coding: utf-8 -*-
<%inherit file="../autohandler"/>
<%include file="toolPanel.myt"/>

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr><td><div id="add" /></td></tr>
</table>
<table id="tbContent" width="90%" border="0" align="center" cellpadding="0" cellspacing="1" class="BoxCenter">
  <tr class="headlineTextCenter"><td height="20" bgcolor="#C5CED9" width="2%">№</td>
    <td height="20" bgcolor="#C5CED9" width="96%">Наименование типа</td>
    <td height="20" bgcolor="#C5CED9" colspan="2" width="2%">Действия</td>
  </tr>
  <tr id="trNew"><td colspan="8">
      <div id="divNewItem"></div>
      <div id="divNewShowEdit"></div></td>
  </tr>
  <tr bgcolor="#F0F0F0"></tr>

%for post in c.category:
  %if post.id <> -1:
   <tr bgcolor="#F0F0F0">
     <td height="20" class="bodyText">${post.id}</td>
     <td height="20" class="bodyText">
         ${h.link_to_remote(post.name, dict(update="fullview%s" % post.id, url=h.url_for(action='fullview/%s' % post.id)))}
     </td>
     <td height="20" class="bodyText">
         ${h.link_to_remote("<img border='0' src='/img/b_props.png' title='Редактировать запись' alt='Редактировать' width='16' height='16'>", dict(update="fullview%s" % post.id, url=h.url_for(action='edit/%s' % post.id)))}
     </td>
     <td height="20" class="bodyText">
         ${h.link_to("<img border='0' src='/img/b_delrec.png' title='Удалить запись' alt='Удалить' width='16' height='16'>", url=h.url(action='delete', id=post.id), confirm='Вы действительно хотите удалить запись "%s"?' % post.name)}
     </td>
   </tr>
   <tr id="trShowEdit${post.id}">
       <td colspan="8" id="td${post.id}">
           <div id="fullview${post.id}" />
   </td></tr>
  %endif
%endfor
</table>
<%include file="toolPanel.myt"/>

